<!doctype html>
<html>
{include file="head.html"}

<body>
<div class="page">
	<div class="fullscreen">
  <div class="scroll_content">
  <div class="topfixed">
    	<div class="t_left"><a href="/index.php"><i class="back"></i></a></div>
      <div class="t_main">签到</div>
       
    </div>
 
    <div class="paddingheight"></div> 
    <div class="comblock">
    	{get data=tc model=dataapi fun=getword("签到说明")}
        {$tc.content}
    </div>
    <div class="comblock">
    	<div class="input-row" ><input id="checkin-content" placeholder="请说点什么" type="text"></div>
    	<a class="btn btn-row"  id="checkin-submit">点我签到</a>
    </div>
    <style>
    	.qdlist .hd{  font-size:22px; margin-bottom:5px;}
		.qdlist .item{ line-height:24px; height:24px; color:#999; font-size:14px; margin-bottom:10px; border-bottom:1px dotted #aaa;}
		.qdlist .item .time{ color:#333;}
    </style>
    <div class="comblock">
    	
    	<div class="qdlist">
        <div class="hd">签到记录</div>
    	{foreach item=c from=$data}
        <div class="item"><span class="time">{$c.dateline|date:Y-m-d}</span> {$c.content}</div>
        {/foreach}
        </div>
    </div>
    {$pagelist}
    </div>
    </div>
    </div>
        
        <script>
        	$(function(){
				$("#checkin-submit").on("click",function(){
					$.post("/index.php?m=checkin&a=save&ajax=1",{content:$("#checkin-content").val()},function(data){
						skyToast(data.message);
					},"json")
				});
			});
        </script>
</body>
</html>
